
package org.adream.account.dao;

import java.util.List;

import org.adream.account.entity.IntegralTypeEntity;
import org.apache.ibatis.annotations.Param;

@BaseMybatisDao
public interface IntegralTypeDao {
	
	int addIntegralType(IntegralTypeEntity integralType);
	
	int deleteIntegralType(IntegralTypeEntity integralType);
	
	int updateIntegralType(IntegralTypeEntity integralType);
	
	List<IntegralTypeEntity> queryIntegralTypesByDr(@Param("dr") int dr);
	
	IntegralTypeEntity queryIntegralTypeByItid(@Param("itid") int itid);
	
	//根据name,dr查询 取第一个
	IntegralTypeEntity queryIntegralTypeByNameAndDr(@Param("name") String name, @Param("dr") int dr);
}